import { createApp } from "vue";
import App from "./App.vue";
import pinia from "./store";
import router from "./router";
// import ElementPlus from "element-plus";
//@ts-ignore
// import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import globalComponent from "./components";
import "element-plus/dist/index.css";
import "@/assets/styles/index.scss";
import "virtual:svg-icons-register";
import { isHasBtn } from "./utils/directive";

const app = createApp(App);
app.use(pinia);

// app.use(ElementPlus, { locale: zhCn });
//使用全局组件，避免单个组件引用
app.use(globalComponent);
app.use(router);
//使用全局指令
isHasBtn(app);
app.mount("#app");
